// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import './lib/mui/css/mui.css';
import './lib/mui/css/icons-extra.css'
import { Header } from 'mint-ui';
import 'mint-ui/lib/style.css';
import { Button } from 'mint-ui';

Vue.component(Button.name, Button);
Vue.component(Header.name, Header);
import { Swipe, SwipeItem } from 'mint-ui';


Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.config.productionTip = false
import axios from 'axios';
Vue.prototype.$axios=axios;
//axios.defaults.baseURL = 'http://vue.studyit.io';
//axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
//axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.baseURL = '/api'
/* eslint-disable no-new */
import  moment   from  'moment'
// 过滤器使用方法
Vue.filter('dataFormat',function(data,patten="yyyy/mm/dd"){
 return  moment(data).format(patten);
})




new Vue({
	el: '#app',
	router,
	components: {
		App
	},
	template: '<App/>'
})
